package com.omg.business.model;

import java.util.Date;

import com.omg.server.framework.vo.ValueObject;
import com.omg.server.util.DateUtil;


public class BusinessInfo extends ValueObject {

	private String id;
	private String subStract;
	private String source;
	private String tag;
	private String imgUrl;
	private String targetUrl;
	private String price;
	private String title;
	private String type; //商品类型
	private Date issueTime;
	private String issueDate;
	private Integer evalCount;
	private int seq;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getSubStract() {
		return subStract;
	}
	public void setSubStract(String subStract) {
		this.subStract = subStract;
	}

	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getTag() {
		if (null == tag){
			tag = "";
		}
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public String getImgUrl() {
		return imgUrl;
	}
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	public String getTargetUrl() {
		return targetUrl;
	}
	public void setTargetUrl(String targetUrl) {
		this.targetUrl = targetUrl;
	}
	
	public String getPrice() {
		if (null == price){
			price = "";
		}
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getType() {
		if (null == type){
			type = "";
		}
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	public Date getIssueTime() {
		return issueTime;
	}
	public void setIssueTime(Date issueTime) {
		this.issueTime = issueTime;
	}
	public String getIssueDate() {
		if (null == issueTime){
			return "";
		}
		this.issueDate = DateUtil.formatDate(issueTime, DateUtil.MMDDHHMM);
		return issueDate;
	}

	public Integer getEvalCount() {
		return evalCount;
	}
	public void setEvalCount(Integer evalCount) {
		this.evalCount = evalCount;
	}
	public int getSeq() {
		return seq;
	}
	public void setSeq(int seq) {
		this.seq = seq;
	}
	
}
